package com.aaa.dao;

import com.aaa.entity.Dept;
import com.aaa.entity.PageSort;
import com.aaa.entity.Userinfo;

import java.util.List;

public interface DeptDao {
    /**
    * @Author: WTH
    * @Description: 查询
    * @Date:2022-07-01 09:52
    * @Params: 
    */
    List<Dept> selectDept(PageSort pageSort);
    List<Dept> selectDeptFirst();
    
    /**
    * @Author: WTH
    * @Description: 新增
    * @Date:2022-07-01 09:52
    * @Params: 
    */
    int addDept(Dept dept);
    
    /**
    * @Author: WTH
    * @Description: 批量删除
    * @Date:2022-07-01 09:53
    * @Params: 
    */
    int deleteDept(String dept_id);
    
    /**
    * @Author: WTH
    * @Description: 修改
    * @Date:2022-07-01 09:53
    * @Params: 
    */
    int updateDept(Dept dept);
    
    /**
    * @Author: WTH
    * @Description: 添加校验部门名称是否重复
    * @Date:2022-07-01 09:53
    * @Params: 
    */
    List<Dept> selectDeptByname(Dept dept_name);
    
    /**
    * @Author: WTH
    * @Description: 单条删除，删除校验
    * @Date:2022-07-01 09:58
    * @Params: 
    */
    List<Userinfo> selectUserinfoByid(Integer deptid);
    int deleteDeptByid(Integer dept_id);
}
